package com.hualude.roadsign.utils;

/**
 * Created by shaury on 2017/2/25.
 */

public final class SystemConstants {

    // 设备类型
    public final static String DeviceType_Web = "web";
    public final static String DeviceType_Html5 = "ht5";
    public final static String DeviceType_Android = "ads";
    public final static String DeviceType_Ios = "ios";

    // 用于表格数据查询的功能
    public final static String DataTablesParam_Combox = "-1";
    public final static String DataTablesParam_Separator = "#";

    // 数据增删改查的返回信息
    public static final String DataOperate_Success = "Success";
    public static final String DataOperate_Failure = "Failure";

    //异常 信息提示
    public static final String ERROR_Tips="error_reason : ";

    //接口返回结果
    public static final String INTERFACE_SUCCESS = "Success";
    public static final String INTERFACE_RESULT = "Result";
    public static final String INTERFACE_INFO = "Info";
    public static final String INTERFACE_FAILUER = "Failure";
    public static final String INTERFACE_EMPTY = "Empty";
    public static final String INTERFACE_COUNT = "Count";


    public static final String CLASSNUM_ERROR = "ClassNumError";

    //增删改结果参数
    public static final Integer Delete_Success = 1; // 删除一般都是将主键ID对应的属性置1，所以影响行数为1时删除成功
    public static final Integer Update_Success = 0; // 判断是否更新成功条件为大于等于0
    public static final Integer Insert_Success = 0; // 判断是否插入成功条件为大于0
    public static final Integer Delete_Failure = -1;
    public static final Integer Update_Failure = -1;
    public static final Integer Insert_Failure = -1;
    public static final Integer Delete_Default = -1;// 初始化执行增删改返回结果
    public static final Integer Update_Default = -1;
    public static final Integer Insert_Default = -1;

    // web返回处理结果
    public final static String Success = "Success";// 成功
    public final static String Failure = "Failure";// 失败
    public final static String ErrorTips = "对不起，系统错误!";// 异常
    public final static String FailureTips_name = "对不起，用户名不存在!";// 账号不存在
    public final static String FailureTips_pwd = "对不起，密码错误，请重新输入!";// 密码错误

    // 设备类型
    public final static String Web = "web";
    public final static String Html5 = "ht5";
    public final static String Android = "ads";
    public final static String Ios = "ios";

    // session 保存名称
    public final static String SessionName = "loginUserSession";
    public final static String ServerUrl="http://yssy.52xuetong.com/";

    //
    // 时间格式参数
    public final static int MilliSeconds_Str = 0;
    public final static int Seconds_Str = 1;
    public final static int Year_Month_Date_Str = 2;
    public final static int Month_Date_Str = 3;
    public final static int MilliSeconds_Str_serial = 4;
}

